<template>
    <el-menu background-color="#FFFFFF" text-color="#333" unique-opened active-text-color="#FFFFFF"
        :collapse="isCollapse" :collapse-transition="false" router :default-active="getActivePath">
        <!-- 递归动态菜单 -->
        <ElmentSub :menuList="menuList" ref="ElmentSub" ></ElmentSub>
    </el-menu>
</template>

<script>
import ElmentSub from '@/components/Elmenu/ElmentSub.vue'
import {mapGetters} from'vuex'
export default {
    name: "Elmenu",
    components: {
        ElmentSub
    },
    props: {
        menuList: {
            type: Array,
            default: () => { [] }
        },
    },
    data() {
        return {
            //是否折叠
            isCollapse: false,
           
        }
    },
    methods: {
    },
    created() {
       
    },
    computed:{
        //获取历史活动路径
        ...mapGetters('tagViewPath',['getActivePath'])
    }
};
</script>